#ifndef ELF_H
#define ELF_H
#include <stdint.h>
typedef struct{
	uint8_t	e_ident[16];
	uint16_t	e_type;
	uint16_t    e_machine;
	uint32_t    e_version;
	uint32_t    e_entry;
	uint32_t    e_phoff;
	uint32_t    e_shoff;
	uint32_t    e_flags;
	uint16_t    e_ehsize;
	uint16_t    e_phentsize;
	uint16_t    e_phnum;
	uint16_t    e_shentsize;
	uint16_t    e_shnum;
	uint16_t    e_shtrndx;
} elf32_ehdr;

typedef struct {
	uint32_t    sh_name;
	uint32_t    sh_type;
	uint32_t    sh_flags;
	uint32_t    sh_addr;
	uint32_t    sh_offset;
	uint32_t    sh_size;
	uint32_t    sh_link;
	uint32_t    sh_info;
	uint32_t    sh_addralign;
	uint32_t    sh_entsize;
} elf32_shdr;

typedef struct {
	uint32_t	ph_type;
	uint32_t	ph_offset;
	uint32_t	ph_vaddr;
	uint32_t	ph_paddr;
	uint32_t	ph_filesz;
	uint32_t	ph_memsz;
	uint32_t	ph_flags;
	uint32_t	ph_align;
} elf32_phdr;


#endif

